<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/WEB-INF/tld/showUpsAndWeight.tld" prefix="uw" %> 
<%@ taglib uri="/WEB-INF/tld/waybillStatus.tld" prefix="ws" %>
<%@ taglib uri="/WEB-INF/tld/kouAnStatus.tld" prefix="ka" %> 
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>运单详情</title>
		<link rel="stylesheet" type="text/css" href="btn_class.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/style.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/desktop.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/ext-patch.css" />

		<script type="text/javascript" src="ext-2.2/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="ext-2.2/ext-all.js"></script>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

		<script type="text/javascript">
		<%String uId = (String) session.getAttribute("Uid");
			if (uId == null || uId.equals("null")) {%>
			window.parent.location.href = 'index.jsp';
		<%}%>
		function save(wbId)
		{
			var f = document.forms["wbApprovalForm"];
			f.action = "waybill!modifyWbInQuery.do?wbId="+wbId;
			f.submit();
		}
	</script>
	<style type="text/css">
		
		.btnSubmit
		{
			padding-bottom : 0px;
			margin : 0px;
			padding-left : 0px;
			padding-right : 0px;
			font-family : "宋体", Arial, Helvetica, sans-serif;
			font-size : 12px;
			padding-top : 0px;
			height : 25px;
		}
		.bd1
		{
			width : 200px;
			float : left;
			height : 20px;
		}
		div
		{
			padding-bottom : 0px;
			margin : 0px;
			padding-left : 0px;
			padding-right : 0px;
			font-family : "宋体", Arial, Helvetica, sans-serif;
			font-size : 12px;
			padding-top : 0px;
			
		}
		.right_center
		{
			background : white;
			padding-bottom: 50px;
			padding-left: 30px;
			width : 100%;
			padding-right: 0px;
			padding-top: 28px;
		}
		.wenzi
		{
			text-align : right;
			line-hight :20 px;
			width :102px;
			padding-right :10px;
			float : left;
			height :20 px;
		}
		.wenzi2
		{
			line-hight :20 px;
			width :300px;
			padding-left :40px;
			float : left;
			height :20 px;
		}
		
		.wwhh
		{
			padding-bottom : 10px;
			line-height : 14px;
			padding-left : 110px;
			width : 1000px;
			padding-right : 0px;
			color : #a9a9a9;
			padding-top : 0px;
		}
		
	</style>
	<% String role = (String)session.getAttribute("UisManager");
		request.setAttribute("role",role);
%>
	</head>


<body class="ext-ie ext-ie6 ext-border-box " id="ext-gen6">
<div class="x-panel x-panel-noborder x-form-label-right" id="ext-comp-1001" style="width: 100%;">
	<div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen8" style="mozuserselect: none; khtmluserselect: none;" unselectable="on">
		<span class="x-panel-header-text" id="ext-gen21">运单详情</span>
	</div>
	 <form name="wbApprovalForm" method="post">
	 	<s:iterator id="wb" value="wbTO">
		<div class="right_center">
		<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >运单信息：</div>
		<br/>
		
			<div style="height:26px">
				<div class="wenzi">订单编号：</div>
				<div class="wenzi2"><s:property value="#wb.wbId"/></div>
			</div>
			<div style="height:26px">
				<div class="wenzi">仓库：</div>
				<select name="wbWarehouse" class="bd1">
					  <option value="">未选择</option>
					  <c:choose>
                           <c:when test="${wb.wbWarehouse == 'CA'}">
                               <option value="CA" selected>CA</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="CA">CA</option>
                           </c:otherwise>
                     </c:choose>
                       <c:choose>
                           <c:when test="${wb.wbWarehouse == 'OR'}">
                               <option value="OR" selected>OR</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="OR">OR</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbWarehouse == 'NK'}">
                               <option value="NK" selected>New York 地址</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="NK">New York 地址</option>
                           </c:otherwise>
                     </c:choose>
				</select>
			</div>
			<div style="height:26px">
				<div class="wenzi">美国快递单号：</div>
				<input name="wbSendOrderNumUSA" class="bd1" type="text" size="18" value="${wb.wbSendOrderNumUSA}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">国内发货单号：</div>
				<input name="wbSendOrderNum" class="bd1" type="text" size="18" value="${wb.wbSendOrderNum}"/>
			</div>
			
			<div style="height:26px">
				<div class="wenzi">当前订单状态：</div>
				<div class="wenzi2"><ws:translateStatus enStatus="${wb.wbStatus}"></ws:translateStatus></div>
				<c:if   test= "${role !='N' && role == '1'}"> 
				<select name="wbStatus" class="bd1">
					  <option value="">未选择</option>
					  <c:choose>
                           <c:when test="${wb.wbStatus == 'forecastStatus'}">
                               <option value="forecastStatus" selected>到货预报</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="forecastStatus">到货预报</option>
                           </c:otherwise>
                     </c:choose>
                       <c:choose>
                           <c:when test="${wb.wbStatus == 'enterStatus'}">
                               <option value="enterStatus" selected>管理员已入库</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="enterStatus">管理员已入库</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbStatus == 'unhandleStatus'}">
                               <option value="unhandleStatus" selected>未处理</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="unhandleStatus">未处理</option>
                           </c:otherwise>
                     </c:choose>
                      <c:choose>
                           <c:when test="${wb.wbStatus == 'unPayforStatus'}">
                               <option value="unPayforStatus" selected>已付款,待发货</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="unPayforStatus">已付款,待发货</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbStatus == 'unPayforStatus1'}">
                               <option value="unPayforStatus1" selected>余额不足</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="unPayforStatus1">余额不足</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbStatus == 'payforUnSendStatus'}">
                               <option value="payforUnSendStatus" selected>已发货，待转EMS</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="payforUnSendStatus">已发货，待转EMS</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbStatus == 'sendedStatus'}">
                               <option value="sendedStatus" selected>已转EMS</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="sendedStatus">已转EMS</option>
                           </c:otherwise>
                     </c:choose>
				</select> 
				</c:if>
				
			</div>
			<div style="height:26px">
				<div class="wenzi">订单提交日期：</div>
				<div class="wenzi2"><s:property value="#wb.wbSubmitTime"/></div>
			</div>
			<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >运费信息：</div>
			<br/>
			<div style="height:26px">
				<div class="wenzi">原始重量：</div>
				<input name="wbEnterWeight" class="bd1" type="text" size="18" value="${wb.wbEnterWeight}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">原始Ups：</div>
				<input name="wbUps" class="bd1" type="text" size="18" value="${wb.wbUps}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">原始运单：</div>
				<input name="wbAllUpsAndwWight" type="text" style="width:500px;float:left;height:20px;" value="${wb.wbAllUpsAndwWight}"/>
			</div>

			<div style="height:26px">
				<div class="wenzi">重称重量：</div>
				<input name="wbActualWeight" class="bd1" type="text" size="18" value="${wb.wbActualWeight}"/>
			</div>
			
			<div style="height:26px">
				<div class="wenzi">运单类型：</div>
				<div class="wenzi2">
			 				<c:if   test= "${wb.wbOperateRequireType == '0' && wb.wbIsFastBox == null }"> 
									 原箱转发
							</c:if>
							<c:if   test= "${wb.wbOperateRequireType == '0' && wb.wbIsFastBox != null }"> 
									 极速原箱
							</c:if>
							<c:if   test= "${wb.wbOperateRequireType == '1'&&wb.wbTogetherSvc == '1'&& wb.wbSplitSvc == null}"> 
									合箱服务
							</c:if>
							<c:if   test= "${wb.wbOperateRequireType == '1'&&wb.wbTogetherSvc == null &&wb.wbSplitSvc == '1'}"> 
									分箱服务
							</c:if>
								<c:if   test= "${wb.wbOperateRequireType == '1'&&wb.wbTogetherSvc == '1'&&wb.wbSplitSvc == '1'}"> 
									混合服务
							</c:if>&nbsp;
				</div>
			</div>
			<div style="height:26px">
				<div class="wenzi">运单费用说明：</div>
				<div class="wenzi2"><s:property value="#wb.wbBalanceDesc"/></div>
				<c:if   test= "${role !='N' && role == '1'}"> 
				<input name="wbBalanceDesc" type="text" style="width:500px;float:left;height:20px;" value="${wb.wbBalanceDesc}"/>
				 </c:if>
			</div>
			<div style="height:26px">
				<div class="wenzi">总费用：</div>
				<div class="wenzi2"><s:property value="#wb.wbTotalMoney"/></div>
				<c:if   test= "${role !='N' && role == '1'}"> 
				 <input name="wbTotalMoney" class="bd1" type="text" size="18" value="${wb.wbTotalMoney}"/> 
				 </c:if>
			</div>
			<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >货物信息：</div>
			<br/>
				<div style="height:26px">
				<div class="wenzi">口岸：</div>
					<select name="wbKouAn" class="bd1">
					  <option value="">未选择</option>
					  <c:choose>
                           <c:when test="${wb.wbKouAn == 'CQ'}">
                               <option value="CQ" selected>成都</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="CQ">成都</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbKouAn == 'BJ'}">
                               <option value="BJ" selected>成都</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="BJ">成都</option>
                           </c:otherwise>
                     </c:choose>
                       <c:choose>
                           <c:when test="${wb.wbKouAn == 'TJ'}">
                               <option value="TJ" selected>天津</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="TJ">天津</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbKouAn == 'GZ'}">
                               <option value="GZ" selected>广州</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="GZ">广州</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbKouAn == 'GZBS'}">
                               <option value="GZBS" selected>广州(包税)</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="GZBS">广州(包税)</option>
                           </c:otherwise>
                     </c:choose>
                    <c:choose>
                           <c:when test="${wb.wbKouAn == 'SHBS'}">
                               <option value="SHBS" selected>上海(包税)</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="SHBS">上海(包税)</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbKouAn == 'SHBSDZ'}">
                               <option value="SHBSDZ" selected>上海包税电子产品</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="SHBSDZ">上海包税电子产品</option>
                           </c:otherwise>
                     </c:choose>
                     <c:choose>
                           <c:when test="${wb.wbKouAn == 'FZ'}">
                               <option value="FZ" selected>福州</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="FZ">福州</option>
                           </c:otherwise>
                     </c:choose>
                      <c:choose>
                           <c:when test="${wb.wbKouAn == 'SHPC'}">
                               <option value="SHPC" selected>上海特殊类电子产品</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="SHPC">上海特殊类电子产品</option>
                           </c:otherwise>
                     </c:choose>
                     
				</select>
			</div>
			<div style="height:26px">
				<div class="wenzi">货物说明：</div>
				<input name="wbGoodsDesc" style="width:500px;float:left;height:20px;" type="text" size="18" value="${wb.wbGoodsDesc}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">申报价值：</div>
				<input name="wbApplyValue" class="bd1" type="text" size="18" value="${wb.wbApplyValue}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">购买保险：</div>
				<select name="wbInsuranceFlag" class="bd1">
					   <option value="">未选择</option>
					  <c:choose>
                           <c:when test="${wb.wbInsuranceFlag == 'Y'}">
                               <option value="Y" selected>是</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="Y">是</option>
                           </c:otherwise>
                     </c:choose>
                       <c:choose>
                           <c:when test="${wb.wbInsuranceFlag == 'N'}">
                               <option value="N" selected>否</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="N">否</option>
                           </c:otherwise>
                     </c:choose>

				</select>
			</div>
			<div style="height:26px">
				<div class="wenzi">积分代扣：</div>
				<select name="wbIsIntegral" class="bd1">
					   <option value="">未选择</option>
					  <c:choose>
                           <c:when test="${wb.wbIsIntegral == 'Y'}">
                               <option value="Y" selected>是</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="Y">是</option>
                           </c:otherwise>
                     </c:choose>
                       <c:choose>
                           <c:when test="${wb.wbIsIntegral == 'N'}">
                               <option value="N" selected>否</option>
                           </c:when> 
                           <c:otherwise>
                               <option value="N">否</option>
                           </c:otherwise>
                     </c:choose>

				</select>
			</div>
			<div style="height:26px">
				<div class="wenzi">包装要求：</div>
				<div class="wenzi2" style="width:600px">
					<c:if   test= "${wb.wbPackqcfp == '1'}"> 
							取出发票;
						</c:if>
						<c:if   test= "${wb.wbPackjjcl  == '1'}"> 
							加急处理;
						</c:if>
						<c:if   test= "${wb.wbPacknjjg  == '1'}"> 
							内固加件;
						</c:if>
						<c:if   test= "${wb.wbPackghwx  == '1'}"> 
							 更换外箱;
						</c:if>
						<c:if   test= "${wb.wbPackjtwx == '1'}"> 
							加套外箱;
						</c:if>
						<c:if   test= "${wb.wbPackqcnj == '1'}"> 
							去除内件;
						</c:if>
						<c:if   test= "${wb.wbPackyxzy == '1'}"> 
							原箱转发;
						</c:if>
						<c:if  test= "${wb.wbPackzdwpfx == '1'}"> 
							指定物品分箱;
						</c:if>
				</div>
			</div>
			<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >收货信息：</div>
			<br/>
			<div style="height:26px">
				<div class="wenzi">收货人：</div>
				<input name="wbPUname" class="bd1" type="text" size="18" value="${wb.wbPUname}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">收货人电话：</div>
				<input name="wbPUphone" class="bd1" type="text" size="18" value="${wb.wbPUphone}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">收货人邮编：</div>
				<input name="wbPUzip" class="bd1" type="text" size="18" value="${wb.wbPUzip}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">收货城市：</div>
				<input name="wbPUcity" class="bd1" type="text" size="18" value="${wb.wbPUcity}"/>
			</div>
			<div style="height:26px">
				<div class="wenzi">收货地址：</div>
				<input name="wbPUaddress" style="width:500px;float:left;height:20px;" type="text"  value="${wb.wbPUaddress}"/>
			</div>
			<div style="height:20px;align:center;  background: #eff5fb; color: #1e5494; font-size: 15px; font-weight: bold; border: #7db5de 1px solid;" >运单留言：</div>
			<br/>
			<div style="height:26px">
				<div class="wenzi"><font color="#0000ff">客户留言：</font></div>
				<input name="wbNote" style="width:500px;float:left;height:20px;" type="text"  value="${wb.wbNote}"/>
			</div>
		</div>
		</s:iterator>
		
		 <table width="300px" border="0" cellSpacing="3" cellPadding="3">
		 	<tr>
		 		<td align="center">
		 			<input  type="button" class="submit_btn"  onclick="save(${wbTO.wbId});" value="保存" />
		 		</td>
		 	</tr>
		 </table>
	</form>
</div>
</body>
</html>
